home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr05
/
ddeexamp.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-07-08
|
2KB
|
97 lines
##### Module Macro #####
NAME = ddeexec
SRCS = $(NAME).c stddde.c status.c init.c dde.c execfns.c
OBJS =
##### C7 #####
C7 = 1
##### Library Macro #####
!if $(C7)
LIBS = libw slibcew ddeml oldnames
!else
LIBS = libw slibcew ddeml
!endif
MOD = -AS
##### Include Macro #####
INCLS = $(NAME).h stddde.h
##### Resource Macro #####
RCFILES = $(NAME).ico $(NAME).rc
##### DEBUG Defined #####
DEBUG = 1
##### Build Option Macros #####
!if $(DEBUG)
DDEF = -DDEBUG
CLOPT = -Zid -Od -DSTRICT
MOPT = -Zi
LOPT = /CO /LI /MAP
!else
DDEF =
CLOPT = -Os -DSTRICT
LOPT =
!endif
##### General Macros #####
DEF =
##### Tool Macros #####
ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
CC = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
LINK = link /NOD /NOE $(LOPT)
RC = rc $(DDEF) $(DEF)
HC = hc
##### Inference Rules #####
.c.obj:
$(CC) $*.c
.asm.obj:
$(ASM) $*.asm;
.rc.res:
$(RC) -r $*.rc
##### Main (default) Target #####
goal: $(NAME).exe
##### Dependents For Goal and Command Line #####
$(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
$(LINK) @<<
$(SRCS:.c=.obj) $(OBJS),
$(NAME).exe,
$(NAME).map,
$(LIBS),
$(NAME).def
<<
$(RC) -T $(NAME).res
!if $(DEBUG)
!if !$(C7)
cvpack -p $(NAME).exe
!endif
mapsym $(NAME).map
!endif
##### Create a WinWord compatible RTF text file
docs: stddde.c stddde.d
extract -o stddde.ex stddde.c stddde.d
docfmt -rd -o stddde.doc stddde.ex
-del stddde.ex
-del *.xxx
-del stddde.log
##### Dependents #####
$(SRCS:.c=.obj): $(INCLS)
$(NAME).res: $(RCFILES) $(INCLS)
##### Clean Directory #####
clean:
-del *.obj
-del *.res
-del *.map
-del *.sym